package com.org.javabody.isornot;

/**
 * Created by Administrator on 2017-03-30.
 */
public class Main {
    public static void main(String[] args) {
           GetFactory ge = new StringFactory();
           ReturnInterface re = ge.GetFactory();
           System.out.println(re.getString("T"));
           System.out.println(new GetString() instanceof  ReturnInterface?"是子类":"不是子类");
           System.out.println(ge instanceof  ReturnInterface?"是子类":"不是子类");
           System.out.println(ge instanceof  GetFactory?"是子类":"不是子类");
           System.out.println(new ObjectFactory() instanceof  GetFactory?"是子类":"不是子类");
           ge = new ObjectFactory();
           re = ge.GetFactory();
           System.out.println(re.getObject("444444444444444"));
    }
}
